<?php
$html = str_replace('${accion}', $accion, $html);
$html = str_replace('${icon}', $icon, $html);
$html = str_replace('${id}', $categoria->id, $html);
$html = str_replace('${imgprefix}', time() . '' . rand(1, 99999), $html);
$html = str_replace('${title}', $categoria->value, $html);
$html = str_replace('${value}', $categoria->value, $html);
$html = str_replace('${readonly}', ($categoria->slug=='prensa')?'readonly':'', $html);
$html = str_replace('${banner}', '../content/categorias/'.$categoria->banner->src, $html);
$html = preg_replace('/\${*[A-Za-z0-9_]*\}*/', '', $html);
?>